home *** CD-ROM | disk | FTP | other *** search
- %case window field%
- %case create%
- %case dispose%
- %case mousein%
- SetRect (bounds, %left%, %top%, %right%, %bottom%);
- if PtInRect (where, bounds) then begin
- TrackPopup (bounds, %popupID%, %FieldName%);
- end;
- %case update%
- SetRect (bounds, %left%, %top%, %right%, %bottom%);
- UpdatePopup (bounds, %popupID%, %FieldName%);
- %case activate%
- %case track%
- %case itemNr%
- %DefineItem%
- %case dialog field%
- %fieldname%:% %integer;
- %case init field%
- %fieldname% := 1;
- %case auxiliary%
- {----------}
- var
- X%Fieldname%: integer;
-
- {----------}
- Procedure Draw%Itemname% (whichDialog: DialogPtr;
- itemNr: integer);
- Begin
- DrawPopup (itemNr, %popupID%, X%Fieldname%);
- End; {Draw%Itemname%}
-
- %case filter%
- %case set%
- X%Fieldname% := %Fieldname%;
- SetUserItem (%Itemname%, @Draw%Itemname%);
- %case hit%
- %itemname%: begin
- %if not labelName = %
- InvertLabel (%labelName%);
- %endif%
- DoPopup (%itemname%, %popupID%, %fieldname%);
- X%Fieldname% := %fieldname%;
- %if not labelName = %
- InvertLabel (%labelName%);
- %endif%
- end;
- %case finish%